clear
echo ----------------------------------------------------------------------------------------------------
echo Starting Change Install_Form to ali
sed -i 's_downloads.openwrt.org_mirrors.aliyun.com/openwrt_' /etc/opkg/distfeeds.conf
echo Updateing Package lists...
echo ----------------------------------------------------------------------------------------------------
echo Change Install_Form Success
echo Starting install WlanCard
echo ----------------------------------------------------------------------------------------------------
opkg update
opkg install comgt kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-wwan usb-modeswitch
opkg install kmod-usb-net-rndis usb-modeswitch
opkg install usbutils
opkg install kmod-libphy
opkg install kmod-mii
opkg install kmod-usb-net
opkg install kmod-usb-net-rtl8152 #Wlan Card Model Change , See Readme.md can change this
echo ----------------------------------------------------------------------------------------------------
echo Install Command Executed!
echo Starting Change back Network
echo ----------------------------------------------------------------------------------------------------
rm /etc/config/network
cp /root/network /etc/config/network
echo ----------------------------------------------------------------------------------------------------
echo Clean the residue now ...
rm ./usb_lan_install.sh
rm /root/network
echo ----------------------------------------------------------------------------------------------------
echo Network Change Command Change Success
echo Reboot will Execute 5S , please remove your Wlan card NOW!
sleep 5s
echo Starting reboot!
echo ----------------------------------------------------------------------------------------------------
reboot